﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Utility
{
	public static class Util
	{
		public static Boolean IsByteArrayEqual(Byte[]a,Byte[]b)
		{
			if (a == b)
				return true;
			if (a == null || b == null)
				return false;
			Int32 len = a.Length;
			if (len != b.Length)
				return false;
			for (Int32 i = 0; i < len; ++i)
				if (a[i] != b[i])
					return false;
			return true;
		}
		public static Boolean IsEmptyString(String str)
		{
			return (str == null) || str.Trim() == "";
		}
	}
}
